import Vue from './vue'
import store from './vuex/store'
import Home from './component/home/home.vue'
import { alert } from 'vue-strap'
import transition from './util/transition.js'
import loginCheck from './util/login-check'

transition(Vue)

new Vue({
  el: 'body',
  components: {
    'vue-home': Home,
    'vue-alert-msg': alert
  },
  store,
  created() {
    loginCheck(this)
  },
  vuex: {
    getters: {
      msg: state => state.msg
    }
  }
})
